#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  hello.py
#       Author @  Huoty
#  Create date @  2016-01-30 08:43:21
#  Description @  
# *************************************************************

from wsgiref.simple_server import make_server

def application(environ, start_response):
    start_response("200 OK", [("Content-type", "text/html")])
    return "<h1>Hello web!</h1>"

# Script starts from here

httpd = make_server("", 8001, application)
print "Serving HTTP on port 8001"
httpd.serve_forever()
